package com.liuwei.classy.service.bizinter;


import com.liuwei.classy.model.Pagination;
import com.liuwei.classy.model.Paper;
import com.liuwei.classy.model.Shiti;
import com.liuwei.classy.model.UserPaperStat;

import java.util.List;

/**
 * Created by qingshengzheng on 17/10/11.
 */
public interface IPaperService {

    /**
     * 根据试卷id 获取试卷
     *
     * @param id
     * @return
     */
    public Paper getPaperByid(String id);



    /**
     * 收藏试卷
     */
    public int collectPaper(Long uid, String pid);

    /**
     * 收藏试题
     */
    public int collectShiti(Long uid, String pid);


    /**
     * 获取我收藏的试卷
     */
    public List<Paper> getCollectPaper(Long uid, Pagination<Paper> page);


    /**
     * 获取试卷的title
     */
    public String getPaperTitle(String pid);

    /**
     * 获取推荐的试卷
     */
    public List<Paper> getRmdPapers(Long uid, Pagination<Paper> paper);

    /**
     * 获取试卷列表
     */
    public List<Paper> filterPaper(Long uid, Paper paper, Pagination<Paper> page);


    /**
     * 根据id获取试题
     *
     * @return
     */
    public Shiti getShitiByid(String id);

    /**
     * 获取试卷下的试题
     *
     * @param id
     * @return
     */
    public List<Shiti> getShitiOfPaper(String id);

    /**
     * 获取用户收藏的试题
     *
     * @param uid
     * @param page
     * @return
     */
    public List<Shiti> getCollectShiti(Long uid, Pagination<Shiti> page);


    public List<Paper> historyPaper(Long uid, Pagination<Paper> page);


    public UserPaperStat getUserPaperStat(Long uid);


}
